package cn.bandeqing.customer.rpc;

import cn.bandeqing.base.resp.Resp;
import cn.bandeqing.base.resp.Table;
import cn.bandeqing.customer.req.*;
import cn.bandeqing.customer.resp.CustomerAddressTable;
import cn.bandeqing.customer.resp.CustomerTable;
import cn.bandeqing.customer.resp.JsCodeLoginResp;
import cn.bandeqing.wechatminiapp.req.CustomerAddressSaveOrUpdateReq;

public interface ICustomerRpc {

    JsCodeLoginResp jsCodeLogin(String openid);

    void bindPhone(BindPhoneReq req);

    void bindPhone(String phone);

    void sendCode(SendCodeReq req);

    void wxPhoneBinding(String phoneNumber);

    Resp<Table<CustomerTable>> table(CustomerTableReq req);

    void saveOrUpdate(CustomerSaveOrUpdateReq req);

    Resp<Table<CustomerAddressTable>> addressTable(CustomerAddressTableReq req);

    void addressSaveOrUpdate(CustomerAddressSaveOrUpdateReq req);

}
